# if
# elif
# elif
# else


# score = int(input("Enter your score here: "))
# if score >= 60:
#     if score >= 90:
#         print("excellence")
#     else:
#         print("well done")
# else:
#     print("try harder")


# 开发一个简易的 ATM 机器
# 逻辑：让用户输入操作
# 存：输入金额，余额 = 余额 + 输入金额
# 取：输入金额，余额 = 余额 - 输入金额
# 查询： 输出余额

actions = ["deposit", "withdraw", "query"]
balance = 10000

print("Welcome to use our ATM")

action = input("Please select your action: deposit/withdraw/query :")

if action == "query":
    print("Your count current balance is: ", balance)
elif action == "deposit":
    deposit_amount = int(input("Please input your deposit amount:"))
    balance = balance + deposit_amount
    print("The deposit was successful!",
          "\n" "Your count current balance is: ", balance)
elif action == "withdraw":
    withdraw_amount = int(input("Please input your withdraw amount:"))
    balance -= withdraw_amount
    if withdraw_amount > balance:
        print("Sorry, insufficient funds!")
    else:
        print("The withdraw was successsfull!","\n",
              "Your count current balance is:", balance)
else:
    print("Invalid action!")